package com.ys.data.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.pojo.Result;
import com.common.vo.UserLoginVo;
import com.common.vo.UserRoleVo;
import com.ys.data.auth.entity.User;


/**
* @version: V1.0
* @author: szw
* @className: UserService
* @packageName: UserService
* @description:  用户接口
* @data: 2021-1-19 
**/ 
public interface UserService extends IService<User> {

    /**
     * 新增用户角色信息
     * @return
     */
    Integer saveUser(UserRoleVo userRoleVo) throws  Exception;

    /**
     * 更新用户
     */
    Integer updateUser(UserRoleVo userRoleVo)throws  Exception;

    /**
     * 删除用户
     */
    Integer deleteUser(UserRoleVo userRoleVo)throws  Exception;

    /**
     *  查询用户信息
     * @param id
     * @return UserRoleVo
     * @throws Exception
     */
    UserRoleVo findUser(Long id)throws  Exception;

    /**
     * 用户登录接口
     * @param userLoginVo
     * @return
     */
      Result<?> login(UserLoginVo userLoginVo)throws  Exception;

    /**
     * 用户登出接口
     * @param userRoleVo
     * @return
     */
    UserRoleVo loginOut(UserRoleVo userRoleVo)throws  Exception;
}
